import { ref } from 'vue'
import { ItemType } from "@/components/types/types"


const bill = ref<ItemType[]>([
  
  {
    label: '名称',
    message: '请输入名称',
    required: true,
    model: 'name',
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '类型',
    model: 'type',
    placeholder: '请选择',
    type: 'select',
    required: true,
    disabled: false,
    message: '请选择品类',
    selectData: []
  },
  {
    label: '申请数量',
    message: '请输入数量',
    required: true,
    model: 'applyQty',
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '省份',
    model: 'province',
    placeholder: '请选择',
    type: 'select',
    required: true,
    disabled: false,
    message: '请选择类别',
    selectData: []
  },
  {
    label: '开始时间：',
    model: 'startTime',
    required: true,
    placeholder: '选择时间',
    type: 'beginTime',
    timeType: 'datetime',
    message: '请选择开始时间',
    setTime: 'setTime',
  },
  {
    label: '截止时间：',
    model: 'endTime',
    required: true,
    placeholder: '选择时间',
    type: 'beginTime',
    timeType: 'datetime',
    message: '请选择截止时间',
    setTime: 'setTimemin',
  },
  {
    label: '状态',
    model: 'status',
    placeholder: '请选择',
    type: 'select',
    required: false,
    disabled: true,
    message: '请选择状态',
    selectData: []
  },
  {
    label: '积分/个',
    message: '请输入积分',
    required: true,
    model: 'scorePer',
    placeholder: '请输入',
    type: 'input'
  },
  { 
    label: '品种',
    model: 'drugId',
    placeholder: '请选择',
    type: 'select',
    url: '/base/drug/list',
    required: true,
    disabled: false,
    selectData: []
  },
  { 
    label: '代表',
    model: 'mrId',
    placeholder: '请选择',
    required: true,
    disabled: false,
    type: 'select',
    url: '/base/medicalRepresentative/list',
    selectData: [],
    parm: {
      isDeleted: 0,
      status: 6
    },
  },
  { 
    label: '代理商',
    model: 'agencyId',
    placeholder: '请选择',
    type: 'select',
    required: false,
    disabled: false,
    url: '/base/agency/list',
    selectData: [],
    parm: {
      isDeleted: 0,
      status: 4
    },
  },
  {
    label: '驳回原因',
    model: 'refuseReason',
    placeholder: '请选择医院',
    type: 'textarea',
    disabled: true,
    multiple: true,
  },
  {
    label: '医院',
    model: 'hospitalList',
    placeholder: '请选择医院',
    type: 'select',
    required: true,
    disabled: false,
    multiple: true,
    labels: 'hospitalName',
    value: 'hospitalId',
    message: '请输入医院',
    span: 12
  },
  
])
interface Parmes {
  status?: string;
  [propName: string]: any,
}
const datas = ref<Parmes>({
  hospitalList: []
})
export default { bill, datas }